package com.gua.encrypt.config;

import java.io.Serializable;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import cn.hutool.crypto.asymmetric.AsymmetricAlgorithm;
import lombok.EqualsAndHashCode;

@Configuration
@ConfigurationProperties(prefix = "crypto.rsa")
@EqualsAndHashCode
public class RSACryptProperties implements Serializable{
	
	private static final long serialVersionUID = -4891767841398339336L;

	private AsymmetricAlgorithm algorithm;
	
	/**
	 * base64 私钥
	 */
	private String privateKey;
	
	/**
	 * base64 公钥
	 */
	private String publicKey;

	public AsymmetricAlgorithm getAlgorithm() {
		return algorithm;
	}

	public void setAlgorithm(AsymmetricAlgorithm algorithm) {
		this.algorithm = algorithm;
	}

	public String getPrivateKey() {
		return privateKey;
	}

	public void setPrivateKey(String privateKey) {
		this.privateKey = privateKey;
	}

	public String getPublicKey() {
		return publicKey;
	}

	public void setPublicKey(String publicKey) {
		this.publicKey = publicKey;
	}
	
}
